package com.newcapec.lesson5;

import com.newcapec.lesson4.Person;

public class Demo1 {
    public static void main(String[] args) {
        String str1 = "123";
        str1 = "234";
        str1 = "456";
        changeValue(str1);

        int a = 100;
        System.out.println(a);
        changeValue(a);
        System.out.println(a);
    }

    public static void changeValue(String value){
        value = "world!!!";
    }

    public static void changeValue(Person person){
        person.name = "李四";
    }

    public static void changeValue(int num){
        num = 200;
    }
}
